package com.anhry.app.safety.manage.oa.bean;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * 企业端相关信息
 */
@Entity
@Table(name = "TB_CORP_MSG")
@SequenceGenerator(name="TB_CORP_MSG_SEQ", sequenceName="TB_CORP_MSG_SEQ", allocationSize=1)
public class TbCorpMsg implements java.io.Serializable {

	// Fields

	private Long id;

	private String msgTitle;

	private String msgContent;

	private Date msgDate;

	private Long userId;
	
	private String msgType;

	private String isClock;

	private String isDele;

	// Constructors

	/** default constructor */
	public TbCorpMsg() {
	}

	/** minimal constructor */
	public TbCorpMsg(Long id) {
		this.id = id;
	}

	/** full constructor */
	public TbCorpMsg(Long id, String msgTitle, String msgContent, Date msgDate,
			Long userId, String isClock, String isDele) {
		this.id = id;
		this.msgTitle = msgTitle;
		this.msgContent = msgContent;
		this.msgDate = msgDate;
		this.userId = userId;
		this.isClock = isClock;
		this.isDele = isDele;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "TB_CORP_MSG_SEQ")
	@Column(name = "ID", precision = 11, scale = 0)
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Column(name = "MSG_TITLE",length = 255)
	public String getMsgTitle() {
		return this.msgTitle;
	}

	public void setMsgTitle(String msgTitle) {
		this.msgTitle = msgTitle;
	}

	@Column(name = "MSG_CONTENT", length = 4000)
	public String getMsgContent() {
		return this.msgContent;
	}

	public void setMsgContent(String msgContent) {
		this.msgContent = msgContent;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "MSG_DATE", length = 7)
	public Date getMsgDate() {
		return this.msgDate;
	}

	public void setMsgDate(Date msgDate) {
		this.msgDate = msgDate;
	}

	@Column(name = "USER_ID", precision = 11, scale = 0)
	public Long getUserId() {
		return this.userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	@Column(name = "IS_CLOCK", length = 1)
	public String getIsClock() {
		return this.isClock;
	}

	public void setIsClock(String isClock) {
		this.isClock = isClock;
	}

	@Column(name = "IS_DELE", length = 1)
	public String getIsDele() {
		return this.isDele;
	}

	public void setIsDele(String isDele) {
		this.isDele = isDele;
	}

	@Column(name = "MSG_TYPE", length = 1)
	public String getMsgType() {
		return msgType;
	}

	public void setMsgType(String msgType) {
		this.msgType = msgType;
	}

}